<!DOCTYPE html>
<!--suppress ALL -->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组</title>
    <script>
        let arr = [1, 2, 3, 4];

        let [x, y, z] = arr;
        console.log(x+y+z)

    </script>
</head>
<body>

</body>
</html>